<template>
  <div>
    <div style="margin-bottom:0.5rem">
      <van-nav-bar title="鉴定服务" left-arrow @click-left="onClickLeft" />
      <img src class="img1" />
    </div>
    <ul style="overflow:auto;height:12rem;" class="list">
      <li>
        <div class="user1">
          <div style="display:flex;">
            <router-link to="/pingjia" class="pimg" tag="p"></router-link>
            <p
              style="display:flex;flex-direction: column;justify-content: space-between;height:1rem"
            >
              <span>大牛</span>
              <span>2019-05-18</span>
            </p>
          </div>
          <span style="margin-top:0.4rem">古驰</span>
        </div>
        <p>请大神鉴定</p>

        <div class="user2">
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
        </div>
      </li>
      <li>
        <div class="user1">
          <div style="display:flex;">
            <p class="pimg"></p>
            <p
              style="display:flex;flex-direction: column;justify-content: space-between;height:1rem"
            >
              <span>大牛</span>
              <span>2019-05-18</span>
            </p>
          </div>
          <span style="margin-top:0.4rem">古驰</span>
        </div>
        <p>请大神鉴定</p>

        <div class="user2">
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
        </div>
      </li>
      <li>
        <div class="user1">
          <div style="display:flex;">
            <p class="pimg"></p>
            <p
              style="display:flex;flex-direction: column;justify-content: space-between;height:1rem"
            >
              <span>大牛</span>
              <span>2019-05-18</span>
            </p>
          </div>
          <span style="margin-top:0.4rem">古驰</span>
        </div>

        <p>请大神鉴定</p>
        <div class="user2">
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
        </div>
      </li>
      <li>
        <div class="user1">
          <div style="display:flex;">
            <p class="pimg"></p>
            <p
              style="display:flex;flex-direction: column;justify-content: space-between;height:1rem"
            >
              <span>大牛</span>
              <span>2019-05-18</span>
            </p>
          </div>
          <span style="margin-top:0.4rem">古驰</span>
        </div>
        <p>请大神鉴定</p>

        <div class="user2">
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
          <img
            src="https://img03.sogoucdn.com/net/a/04/link?url=https%3A%2F%2Fi03piccdn.sogoucdn.com%2F09cb70ea31abfcfc&appid=122"
          />
        </div>
      </li>
    </ul>

    <div
        v-show="isshow3"
      style="position:absolute;
            bottom:0;
            width: 100%;
            height: 1rem;
            "
    >
      <van-tabbar v-model="active">
        <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
        <van-tabbar-item icon="todo-list-o" to="/classes">分类</van-tabbar-item>
        <van-tabbar-item icon="coupon-o" to="/pub">发布</van-tabbar-item>
        <van-tabbar-item icon="cart-o" to="/cart">购物车</van-tabbar-item>
        <van-tabbar-item icon="like-o" to="/my">我的</van-tabbar-item>
      </van-tabbar>
    </div>
    <p
      @click="tab()"
      style="position:absolute;
            bottom:2rem;
            left:50%;
            margin-left:-1rem;
            border-radius:50%;
            border:1px solid #ccc;
            background:#ccc;
            width: 2rem;
            opacity: 0.5;
            height: 2rem;"
    >
      <!-- <van-button type="primary" @click="showPopup">展示弹出层</van-button> -->
      <van-popup v-model="show" round position="bottom" :style="{ height: '20%' }" />
    </p>
    <router-link tag="p"
     to="/goods"
      @click="tab2()"
      v-show="isshow2"
      style="position:absolute;
            bottom:4rem;
            left:20%;
            text-align:center;
            line-height:1.8rem;
            border-radius:50%;
            border:1px solid #ccc;
            background:#ccc;
            width: 1.8rem;
            opacity: 0.5;
            height: 1.8rem;"
    >实物鉴定</router-link>
    <router-link tag="p"
    to="/img"
      v-show="isshow1"
      style="position:absolute;
            bottom:4rem;
            right:20%;
            text-align:center;
            line-height:1.8rem;
            border-radius:50%;
            border:1px solid #ccc;
            background:#ccc;
            width: 1.8rem;
            opacity: 0.5;
            height: 1.8rem;"
    >图片鉴定</router-link>
  </div>
</template>
<script>
import { Toast } from "vant";
export default {
  data() {
    return {
      active: "0",
      show: false,
      isshow1: false,
      isshow2: false,
      isshow3:true
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    tab() {
      this.show = true;
      this.isshow1 = true;
      this.isshow2 = true;
      this.isshow3=false;
    }
  }
};
</script>
<style scoped>
* {
  margin: 0;
  padding: 0;
}
.img1 {
  width: 100%;
  height: 3rem;
}
.list li {
  padding: 0 0.4rem;
  height: 6rem;
  display: flex;
  display: block;
  border-bottom: 1px solid #ccc;
  margin-top: 0.5rem;
}
.user1 {
  display: flex;
  height: 1.6rem;
  justify-content: space-between;
}
.pimg {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #ccc;
  margin-right: 0.2rem;
}
.user2 {
  display: flex;
  flex-wrap: wrap;
}
.user2 img {
  height: 1.8rem;
  width: 2.9rem;
  margin-right: 0.05rem;
  margin-bottom: 0.05rem;
}
</style>
